#include<iostream>
#include "work1.h"
#include "class.h"
#include "gclass.h"
using namespace std;

void Rule::SetRule(char *l,char *r)
{
	int i;
	left[0]=l[0];
	left[1]=0;
	for(i=0;r[i]!=0;i++)
		right[i]=r[i];
	right[i]=0;
}

void Rule::Print()
{
	cout<<left<<"->"<<right<<endl;
}